<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>


<%--
  Created by IntelliJ IDEA.
  User: mchebanenko
  Date: 9-Sep-2010
  Time: 12:59:39 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head><title>Список договоров</title></head>
  <body>

   <f:view>
        <h:form id="UserList" >

          <table height="100%" width="100%" >
                   <tr>
                       <td align="center" valign="middle" >
                            <h:panelGrid columns="1" >
                                <h:commandButton id ="Enter" value="Add" action="#{UserInfo.sendToAddUser}"/>



                                <h:dataTable    id="table"  value="#{UserInfo.reportsModel}" var="UInfo">

                                    <h:column>
                                        <f:facet name="header">
                                        <h:commandLink
                                                        id="heading1"
                                                        styleClass="SortLink"
                                                        title="Sort column values"
                                                        value="Invoice No."
                                                       >
                                        <f:verbatim escape="true"># Document</f:verbatim>
                                        </h:commandLink>
                                        </f:facet>

                                        <h:outputText value="#{UInfo.doc_ID}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.user_First_Name}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.user_Last_Name}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.doc_Amonut}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.credit_Amount}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.create_Date}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.credit_Long}"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText value="#{UInfo.rate}"/>
                                    </h:column>
                                    <h:column>
                                        <h:commandLink action="#{UserInfo.sendToEditUser}" value="Edit" />
                                    </h:column>

                                </h:dataTable>




                            </h:panelGrid>
                       </td>
                   </tr>
          </table>


          </h:form>
    </f:view>





  </body>
</html>